if (WIN32)
    set(MISC_FILES
            misc/cpp/imgui_stdlib.cpp
    )

    set(BACKENDS_FILES
            backends/imgui_impl_opengl3.cpp
            backends/imgui_impl_glfw.cpp
    )

    set(PLUGINS_FILES
            ImGuizmo/ImGuizmo.cpp
            ImGuizmo/GraphEditor.cpp
            ImGuizmo/ImCurveEdit.cpp
            ImGuizmo/ImGradient.cpp
            ImGuizmo/ImSequencer.cpp
    )
endif (WIN32)

add_definitions(-DLZ_PLATFORM_WINDOWS -DLZ_BUILD_DLL)
include_directories("./")
include_directories("./backends")
include_directories("./misc/cpp/")

set(SOURCE_FILES
        imgui.cpp
        imgui_demo.cpp
        imgui_draw.cpp
        imgui_tables.cpp
        imgui_widgets.cpp
        ${MISC_FILES}
        ${BACKENDS_FILES}
        ${PLUGINS_FILES}
)
add_library(imgui ${SOURCE_FILES})